:root {
  --brown: rgb(90, 46, 46);
  --light-bg: #fff7e6;
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-light: rgba(0, 0, 0, 0.15);
}


body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.background {
  background-color: rgb(197, 172, 143);
  box-shadow: inset 3vw 0 3vw rgba(0, 0, 0, 0.4),   /* linker Schatten */
              inset -3vw 0 3vw rgba(0, 0, 0, 0.4); /* rechter Schatten */
}

h2 {
  text-align: center;
  font-size: 4vw;
  color: rgb(90, 46, 46);
  text-shadow: 0.2vw 0.2vw rgba(0, 0, 0, 0.5);
}

.abstand {
  margin: 12vh;
}

h3 {
  font-size: 3vw;
  margin-top: 0;
}

.header-image {
  height: 20vh;
  width: 100%;
  object-fit: cover;
  border-bottom: 7px solid rgb(90, 46, 46);
}

.logo-image {
  position: absolute;
  left: 3vw;
  top: 2vh;
  height: 12vh;
  width: auto;
    animation: logoPop 3s ease-out;
}

@keyframes logoPop {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  60% { opacity: 1; transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}


.container {
  position: absolute;
  right: 3vw;
  top: 6vh;
  font-size: 2vw;
  display: flex;
  align-items: center;
}

.menu-link {
  color: white;
  text-decoration: none;
  margin-left: 3vw;
}

.menu-link:hover {
  text-decoration: underline;
}

.headline {
  top: 10vh;
  text-align: center;
  color: white;
  font-size: 5vw;
  text-shadow: 0.4vw 0.4vw rgba(0, 0, 0, 0.5);
}

.brown {
  color: rgb(90, 46, 46);
}

.text-rahmen {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.4vw solid rgb(90, 46, 46);
  border-radius: 1.5vw;
  background-color: #fff7e6;
  padding: 2vh 3vw;
  margin: 5vh auto;
  max-width: 70vw;
  box-shadow: 0 0 3vw rgba(0, 0, 0, 0.5);
}

.rahmen-bild {
  height: 10vh;
  width: auto;
}

.rahmen-text {
  padding: 0 2vw;
  font-size: 1.2vw;
  line-height: 1.6;
  color: #333;
  text-align: center;
  flex: 1;
}

/* Scroll-Effekt Standardzustand */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Sobald sichtbar */
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.container-bottom {
  width: 100%;
  text-align: center;
  display: flex;
}

.bottom-link {
  color: white;
  text-decoration: none;
  text-align: center;
  margin-left: 27.5vw;
  font-size: 1.5vw;
  margin-bottom: 20px;
}

/* Allgemeine Änderungen für Mobile Ansicht */
@media (max-width:800px) {
  .header-container {
    height: 55vh;
  }
  .logo-image {
    height: 13vh;
  }
  h2 {
    font-size: 6vw;
  }
  .menu {
    max-width: 80vw;
  }
  .menu-link {
    font-size: 5vw;
  }
}

/* Resizing Header-Container */
@media (max-width: 1200px) {
  .header-container {
    height: 90vh;
  }
}

@media (max-width: 1000px) {
  .header-container {
    height: 75vh;
  }
  .logo-image {
    height: 11vh;
  }
  h1 {
    top: 20vh;
  }
}

@media (max-width: 900px) {
  .header-container {
    height: 65vh;
  }
  .logo-image {
    height: 9vh;
  }
}

@media (max-width: 750px) {
  .header-container {
    height: 50vh;
  }
  .logo-image {
    height: 7vh;
  }
  h1 {
    top: 16vh;
  }
  .menu-title {
    font-size: 7vw;
  }
}
/* Mobile Ansicht: Menü Overlay */
@media (max-width: 1050px) {
  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 90vw;
    transform: translate(-50%, -50%);
    background-color: rgb(90, 46, 46);
    outline: 0.4vw solid white;
    outline-offset: -2vw;
    border: 0.4vw solid white;
    border-radius: 2vw;
    padding: 4vh 4vw;
    z-index: 50;
    box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.4);
  }

  .menu-link {
    text-align: left;
    color: white;
    margin: 1vh 0;
    font-size: 4vw;
    text-decoration: none;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
  .abstand {
    margin: 5vh;
  }
  h1{
        font-size: 5.5vw;
    }
    h2 {
        font-size: 5vw;
        margin-bottom: -2vh;
    }
    .text-rahmen {
        max-width: 90vw;
    }
    .rahmen-text {
        font-size: 2.4vw;
    }
    .rahmen-bild {
        height: 5.5vh;
    }
}

/* Smartphone-Modus 
Smartphones haben in der Regel eine Breite von unter 400px */
@media (max-width:400px) {
    h1 {
        top: 11vh;
        white-space: normal; /* Zeilenumbruch erlauben */
        font-size: 6vw; 
        text-align: center;     /* Überschrift insgesamt etwas kleiner */
    }
    h1 .headline2 {
        display: block;       /* sorgt dafür, dass der "größere" Teil in neuer Zeile steht */
        font-size: 8vw; 
        white-space: nowrap;     /* größer als der restliche Text */
    }
    .header-container {
        height: 40vh;
        border-bottom: 5px solid rgb(90, 46, 46);
    }
    h2 {
        font-size: 7vw;
    }
    .text-rahmen {
        max-width: 90vw;
    }
    .rahmen-text {
        font-size: 3vw;
    }
    .rahmen-bild {
        height: 5.5vh;
    }
    .logo-image {
        height: 9vh;
    }
    #datenschutz-box {
        max-width: 95vw;
    }
    #datenschutz-box button {
      font-size: 5vw;
    }
    h4 {
      font-size: 5vw;
    }
    .bottom-link {
      font-size: 3vw;
    }
    .menu-toggle {
      font-size: 8vw;
    }
    .menu-title {
      font-size: 8vw;
    }
}


